Skip to content

Theme presets background colors#2437

Merged
tf merged 6 commits into
codevise:masterfrom
tf:bg-palette
Jun 19, 2026
Merged

Theme presets background colors#2437
tf merged 6 commits into
codevise:masterfrom
tf:bg-palette

Conversation

@tf

@tf tf commented Jun 19, 2026

Copy link
Copy Markdown
Member

REDMINE-21315

tf added 6 commits June 19, 2026 09:16
Read theme-provided background color presets from
theme.options.presets.backgroundColors. Unlike palette colors, presets
carry their display name inline as data (host apps will edit them via
theme customization overrides) and are copied by value when applied,
so they never change once selected.
Allow ColorInputView swatches to be {value, text} objects in addition
to plain color strings. The text is shown as the swatch tooltip; the
value is the color that gets applied. Swatches are now deduplicated by
value so a labelled preset and a plain color with the same value do not
appear twice. Plain string swatches keep their existing behavior.
Merge theme-provided background color presets ahead of colors already
used in other sections, and offer the combined list as swatches for the
backdrop, card surface and split overlay color inputs. Presets surface
with their inline name as the swatch tooltip; picking one stores the
plain color value.
Allow ColorInputView swatches to carry an optional group key. Consecutive
swatches with a different group are separated by a divider inside the
picker drop down, letting callers visually distinguish sets of colors
(e.g. theme presets vs. colors already in use) without labels. Plain and
ungrouped swatches keep rendering without a divider.
Tag theme background color presets and colors already used in other
sections with separate group keys before passing them to the backdrop,
card surface and split overlay color inputs. The picker then separates
the two sets with a divider instead of showing one flat list.
Add a section to the Custom Colors and Dimensions guide describing the
presets.background_colors theme option: how it differs from palette
colors (copied by value, not referenced), why names are stored inline,
and how presets surface in the section background color picker.
@tf tf added this to the v17.2 milestone Jun 19, 2026
@tf tf merged commit 0d88ee0 into codevise:master Jun 19, 2026
18 checks passed
@tf tf deleted the bg-palette branch June 19, 2026 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant